import {markPointFun,xAxisSetFun,newMakePandL} from './public';
let yLabelColor='#00e7ea';//y轴字体颜色
let picLabelColor='#00eaec'//图形文字颜色
let pieWordColor='#fff';//文字颜色
let dashedColor='#c3c3b6';//X轴虚线颜色
let zhouFontSize=30//轴线字体大小
let splitLineDashed={
  color:'#00d6e9',
  show:true,
  lineStyle:{
    opacity:0.35,
    type:'dashed'
  }
}
let splitLineSolid={
  color:'#00d6e9',
  show:true,
  lineStyle:{
    opacity:0.35,
    type:'solid'
  }
}
//上月创业热门行业前5名
let scatterColor='#f9827e';
let dataTop50=[
  {
    name:'',
    value:[120,300,52],
    itemStyle:{
      color:scatterColor
    },
  },
  {
    name:'',
    value:[380,300,33],
    itemStyle:{
      color:scatterColor
    },
  },
  {
    name:'',
    value:[500,200,52],
    itemStyle:{
      color:'#c55d4b'
    },
  },
  {
    name:'',
    value:[600,100,33],
    itemStyle:{
      color:scatterColor
    },
  },
  {
    name:'',
    value:[650,270,33],
    itemStyle:{
      color:scatterColor
    },
  },
  {
    name:'',
    value:[650,180,33],
    itemStyle:{
      color:'#c75a49'
    },
  },
];
let dataTop5=[
  {
    name:'',
    value:[120,100,0],
    itemStyle:{
      color:'rgba(54,190,234,.8)',
    },
    label:{
      show:true,
      formatter:function (params) {
        return params.name+'\n'+params.value[2]*2
      },
    }
  },
  {
    name:'',
    value:[250,200,0],
    itemStyle:{
      color:'rgba(249,130,126,.6)',
    },
    label:{
      show:true,
      formatter:function (params) {
        return params.name+'\n'+params.value[2]*2
      },
    }
  },
  {
    name:'',
    value:[450,100,0],
    itemStyle:{
      color:'rgba(255,185,128,.7)',
    },
    label:{
      show:true,
      formatter:function (params) {
        return params.name+'\n'+params.value[2]*2
      },
    }
  },
  {
    name:'',
    value:[400,200,0],
    itemStyle:{
      color:'rgba(148,137,193)',
    },
    label:{
      show:true,
      formatter:function (params) {
        return params.name+'\n'+params.value[2]*2
      },
    }
  },
  {
    name:'',
    value:[310,70,0],
    itemStyle:{
      color:'#f9827e',
    },
    label:{
      show:true,
      formatter:function (params) {
        return params.name+'\n'+params.value[2]*2
      },
    }
  },
]
let setionTop5={//top5基本设置
  grid:{
    left:100,
  },
  label:{
    color:picLabelColor,
    fontSize:32
  },
  xAxis: xAxisSetFun({
    lineColor:dashedColor,
    max:700,
    axisLabel:false,
    splitNumber:7
  }),
  yAxis: {
    min:0,
    max:300,
    splitNumber:6,
    axisTick:{
      show:false
    },
    axisLine:{
      show:false
    },
    axisLabel:{
      show:false,
    },
    splitLine:{
      show:false
    },
  },
  series:[
    {
      name:'气泡图',
      type:'effectScatter',
      data:dataTop5,
      markPoint:markPointFun(8),
      showEffectOn:'render',
      rippleEffect: {
        brushType: 'fill',
        scale:1.5
      },
      symbolSize:function (data) {
        return data[2]
      }
    },
    {
      name:'气泡图',
      type:'scatter',
      data:dataTop50,
      markPoint:markPointFun(8),
      symbolSize:function (data) {
        return data[2]
      }
    }
  ]
}
let dataTop51=[
  {
    name:'',
    value:[120,300,52],
    itemStyle:{
      color:scatterColor
    },
  },{
    name:'',
    value:[380,270,33],
    itemStyle:{
      color:scatterColor
    },
  },{
    name:'',
    value:[500,200,52],
    itemStyle:{
      color:'#c55d4b'
    },
  },{
    name:'',
    value:[600,100,33],
    itemStyle:{
      color:scatterColor
    },
  },{
    name:'',
    value:[650,270,33],
    itemStyle:{
      color:scatterColor
    },
  },{
    name:'',
    value:[650,180,33],
    itemStyle:{
      color:'#c75a49'
    },
  },
]
let setionTop51={//top5基本设置
  grid:{
    left:100,
  },
  label:{
    color:picLabelColor,
    fontSize:32
  },
  xAxis: xAxisSetFun({
    lineColor:dashedColor,
    max:700,
    axisLabel:false,
    splitNumber:7
  }),
  yAxis: {
    min:0,
    max:300,
    splitNumber:6,
    axisTick:{
      show:false
    },
    axisLine:{
      show:false
    },
    axisLabel:{
      show:false,
    },
    splitLine:{
      show:false
    },
  },
  series:[
    {
      itemStyle: {
        normal: {
          shadowBlur: 10,
          shadowColor: 'rgba(120, 36, 50, 0.5)',
          shadowOffsetY: 5,
        }
      },
      name:'气泡图',
      type:'scatter',
      data:dataTop51,
      markPoint:markPointFun(8),
      symbolSize:function (data) {
        return data[2]
      }
    },
    {
      name:'涟漪',
      type:'effectScatter',
      symbolSize:function (data) {
        return data[2]
      },
      showEffectOn:'render',
      rippleEffect: {
        brushType: 'fill',
        scale:1.5
      },
      data:[
        {
          name:'',
          value:[120,100,0],
          itemStyle:{
            color:'rgba(54,190,234,.8)',
          },
          label:{
            show:true,
            formatter:function (params) {
              return params.name+'\n'+params.value[2]*4
            },
          }
        },
        {
          name:'',
          value:[250,200,0],
          itemStyle:{
            color:'rgba(249,130,126,.6)',
          },
          label:{
            show:true,
            formatter:function (params) {
              return params.name+'\n'+params.value[2]*4
            },
          }
        },
        {
          name:'',
          value:[450,100,0],
          itemStyle:{
            color:'rgba(255,185,128,.7)',
          },
          label:{
            show:true,
            formatter:function (params) {
              return params.name+'\n'+params.value[2]*4
            },
          }
        },
        {
          name:'',
          value:[400,200,0],
          itemStyle:{
            color:'rgba(148,137,193)',
          },
          label:{
            show:true,
            formatter:function (params) {
              return params.name+'\n'+params.value[2]*4
            },
          }
        },
        {
          name:'',
          value:[310,70,0],
          itemStyle:{
            color:'#f9827e',
          },
          label:{
            show:true,
            formatter:function (params) {
              return params.name+'\n'+params.value[2]*4
            },
          }
        },
      ],
      zlevel:1
    }
  ]
}
export const setOptionTop=setionTop5;
export const setOptionTop1=setionTop51;
//营业占比
let inStitucolor=[{
  type: 'radial',
  x: 0,
  y: 0,
  r: 1,
  colorStops: [{
    offset: 0, color: '#fa827e' // 0% 处的颜色
  }, {
    offset: 1, color: '#f7cdcb' // 100% 处的颜色
  }],
},'#109096','#ef9410','#ffffff']
let instituData=[
  {
    name:'',
    value: 80,
  },{
    name:'',
    value: 100,
  },{
    name:'',
    value: 60,
  },{
    name:'',
    value: 90,
  },{
    name:'',
    value: 100,
  },{
    name:'',
    value: 70,
  }
]
export const instituOption = {
  series : [
    {
      name:'面积模式',
      type:'pie',
      label:{
        show:true,
        color:yLabelColor,
        fontSize:30,
        formatter:function (params) {
          return params.name+' '+params.value+',占比'+params.data.pertent
        }
      },
      labelLine:{
        show:true
      },
      radius : [0, 200],
      center : ['50%', '50%'],
      // roseType : 'false',
      data:[]
    }
  ]
};
//各机构数
export const InstitNumOption={
  grid: {
    left:170
  },
  legend:{
    orient:'vertical',
    type:'plain',
    right:20,
    top:100,
    show:true,
    textStyle:{
      color:yLabelColor,
      fontSize:20
    }
  },
  xAxis: xAxisSetFun({
    lineColor:dashedColor,
    max:700,
    axisLabel:{
      show:true,
      color:yLabelColor,
      fontSize:30
    },
    splitNumber:7,
    margin:25,
    labelColor:yLabelColor
  }),
  yAxis: {
    axisTick:{
      show:false
    },
    axisLine:{
      show:false
    },
    splitLine:{
      show:false
    },
    axisLabel:{
      show:true,
      color:yLabelColor,
      margin:30,
      fontSize:30
    },
    type: 'category',
    data: [
      {
        value:'机构编织',
      },{
        value:'民政',
      },{
        value:'工商',
      }
    ]
  },
  series:[
    {
      name: '机关',
      type: 'bar',
      stack:"aaa",
      data: [0,0,300],
      itemStyle:{
        color:'#089cae'
      },
      barWidth:80,
      markPoint:markPointFun(8,90)
    },
    {
      name: '事业单位',
      barWidth:80,
      type: 'bar',
      stack:"aaa",
      data: [0,0,50],
      itemStyle:{
        color:'#eba33a'
      }
    },
    {
      name: '编办直接管理机构',
      barWidth:80,
      type: 'bar',
      stack:"aaa",
      data: [0,0,90],
      itemStyle:{
        color:'#92d400'
      }
    },
    {
      name: '其他',
      barWidth:80,
      type: 'bar',
      stack:"aaa",
      data: [0,0,30],
      itemStyle:{
        color:'#fe846c'
      }
    },
    {
      name: '社会团体',
      barWidth:80,
      type: 'bar',
      stack:"aaa",
      data: [0,100,0],
      itemStyle:{
        color:'#3a8a60'
      }
    },
    {
      name: '民办非企事业单位',
      barWidth:80,
      type: 'bar',
      stack:"aaa",
      data: [0,170,0],
      itemStyle:{
        color:'#d15925'
      }
    },
    {
      name: '企业',
      barWidth:80,
      type: 'bar',
      stack:"aaa",
      data: [90],
      itemStyle:{
        color:'#871e3f'
      }
    },
    {
      name: '个体工商户',
      barWidth:80,
      type: 'bar',
      stack:"aaa",
      data: [100],
      itemStyle:{
        color:'#e41d25'
      }
    },
    {
      name: '农民专业合作社',
      barWidth:80,
      type: 'bar',
      stack:"aaa",
      data: [40],
      itemStyle:{
        color:'#f3ff21'
      }
    }
  ]
}
//新增机构类型分布
export const typeOption={
  grid: {
    containLabel:true,
    left:100,
    right:300
  },
  legend:{
    orient:'vertical',
    type:'plain',
    right:50,
    show:true,
    top:100,
    textStyle:{
      color:yLabelColor,
      fontSize:24
    }
  },
  xAxis:  [{
    type: 'category',
    axisLine:{
      show:false
    },
    splitLine:{
      show:false
    },
    axisTick:{
      show:false
    },
    axisLabel:{
      show:true,
      color:yLabelColor,
      fontSize:30,
      margin:80
    },
    splitNumber:12,
    data: ['8月','9月','10月','11月','12月','1月','2月','3月','4月','5月','6月','7月']
  }
  ],
  yAxis: [
    {
    name:'单位：个',
    nameGap:30,
    nameTextStyle:{
      padding:[0,55,0,0],
      color:yLabelColor,
      fontSize:30
    },
    axisTick:{
      show:false
    },
    axisLine:{
      show:false
    },
    max:10000,
    splitNumber:6,
    splitLine:splitLineDashed,
    axisLabel:{
      show:true,
      color:yLabelColor,
      fontSize:30
    },
    type:'value',
  },
    {
      name:'单位：%',
      nameGap:30,
      nameTextStyle:{
        padding:[0,0,0,30],
        color:yLabelColor,
        fontSize:30
      },
      axisTick:{
        show:false
      },
      axisLine:{
        show:false
      },
      max:100,
      min:-20,
      splitNumber:6,
      splitLine:splitLineSolid,
      axisLabel:{
        show:true,
        color:yLabelColor,
        fontSize:30
      },
      type:'value',
    },
  ],
  series:[
    {
      name: '企业',
      type: 'bar',
      stack:"aaa",
      data: [],
      itemStyle:{
        color:'#91d500'
      },
      barWidth:70,
    },
    {
      name: '个体工商户',
      barWidth:70,
      type: 'bar',
      stack:"aaa",
      data: [],
      itemStyle:{
        color:'#eba639'
      }
    },
    {
      name: '农民专业合作社',
      barWidth:70,
      type: 'bar',
      stack:"aaa",
      data: [],
      itemStyle:{
        color:'#089dae'
      }
    },{
      name:'同比',
      data: [],
      type: 'line',
      showSymbol: false,
      itemStyle:{
        color:'#fb449b'
      },
      lineStyle:{
        width:13
      },
      yAxisIndex:1
    },{
      name:'环比',
      data: [],
      type: 'line',
      showSymbol: false,
      itemStyle:{
        color:'#7f5ccf'
      },
      lineStyle:{
        width:13
      },
      yAxisIndex:1
    },
    {
      type:'line',
      symbol:'circle',
      symbolSize:14,
      markPoint:newMakePandL(12,[0,40]).point,
    },
  ]
}
//10大特色机构
export const TopOption={
  title:{
    show:true,
    text:'机构数',
    textStyle:{
      color:yLabelColor,
      fontSize:zhouFontSize
    },
    right:240,
    top:20
  },
  grid: {
    containLabel: true,
    left:200
  },
  xAxis :{
    type:'value',
    axisLine:{
      show:false
    },
    splitLine:{
      show:false
    },
    axisTick:{
      show:false
    },
    inverse:true,
    max:1300,
    axisLabel:{
      show:true,
      color:yLabelColor,
      fontSize:zhouFontSize
    },
    offset:10,
    name:'单位：个',
    nameTextStyle:{
      color:yLabelColor,
      fontSize:zhouFontSize,
      padding:[45,50,0,0]
    },
  },
  yAxis :{
    type : 'category',
    position:'right',
    axisLine:{
      show:false
    },
    splitLine:{
      show:false
    },
    axisTick:{
      show:false
    },
    axisLabel:{
      show:true,
      color:yLabelColor,
      fontSize:zhouFontSize
    },
    offset:110,
    data:['丝网','玻璃钢','工程橡胶','采暖铸造','纺织服装','化工制药','金属制品','汽拖配件','食品饮品','工艺美术']
  },
  series : [
    {
      name:'111',
      type:'bar',
      barWidth:55,
      label:{
        show:true,
        color:yLabelColor,
        formatter:function (params) {
          return params.value
        },
        position:'left',
        fontSize:zhouFontSize
      },
      data:[
        {
          name:'丝网',
          value:2,
          itemStyle:{
            color:'#368b5f'
          }
        },{
          name:'玻璃钢',
          value:4,
          itemStyle:{
            color:'#87203b'
          }
        },{
          name:'工程橡胶',
          value:9,
          itemStyle:{
            color:'#d05b23'
          }
        },{
          name:'采暖铸造',
          value:5,
          itemStyle:{
            color:'#f2ff20'
          }
        },{
          name:'纺织服装',
          value:7,
          itemStyle:{
            color:'#c5b6da'
          }
        },{
          name:'化工制药',
          value:4,
          itemStyle:{
            color:'#fe866b'
          }
        },{
          name:'金属制品',
          value:6,
          itemStyle:{
            color:'#87cacb'
          }
        },{
          name:'汽拖配件',
          value:9,
          itemStyle:{
            color:'#e31e23'
          }
        },{
          name:'食品饮品',
          value:3,
          itemStyle:{
            color:'#f37842'
          }
        },{
          name:'工艺美术',
          value:2,
          itemStyle:{
            color:'#fddc7a'
          }
        }
      ]
    }
  ]
}
export const TopOption1={
  title:{
    show:true,
    text:'营业额',
    textStyle:{
      color:yLabelColor,
      fontSize:zhouFontSize
    },
    left:140,
    top:20
  },
  grid: {
    containLabel: true,
    right:230
  },
  xAxis :[{
    type:'value',
    axisLine:{
      show:false
    },
    splitLine:{
      show:false
    },
    axisTick:{
      show:false
    },
    max:100,
    axisLabel:{
      show:true,
      color:yLabelColor,
      fontSize:zhouFontSize
    },
    offset:10,
    name:'单位：亿元',
    nameTextStyle:{
      color:yLabelColor,
      padding:[50,10,0,0],
      fontSize:zhouFontSize
    },
    nameGap:50
  }],
  yAxis :{
    type : 'category',
    axisLine:{
      show:false
    },
    splitLine:{
      show:false
    },
    axisTick:{
      show:false
    },
    axisLabel:{
      show:true
    },
  },
  series : [
    {
      barWidth:55,
      name:'123',
      type:'bar',
      label:{
        show:true,
        color:yLabelColor,
        position:'right',
        fontSize:zhouFontSize,
        formatter:function (params) {
          return params.value
        },
      },
      data:[
        {
          name:'丝网',
          value:2,
          itemStyle:{
            color:'#368b5f'
          }
        },{
          name:'玻璃钢',
          value:4,
          itemStyle:{
            color:'#87203b'
          }
        },{
          name:'工程橡胶',
          value:9,
          itemStyle:{
            color:'#d05b23'
          }
        },{
          name:'采暖铸造',
          value:5,
          itemStyle:{
            color:'#f2ff20'
          }
        },{
          name:'纺织服装',
          value:7,
          itemStyle:{
            color:'#c5b6da'
          }
        },{
          name:'化工制药',
          value:4,
          itemStyle:{
            color:'#fe866b'
          }
        },{
          name:'金属制品',
          value:6,
          itemStyle:{
            color:'#87cacb'
          }
        },{
          name:'汽拖配件',
          value:9,
          itemStyle:{
            color:'#e31e23'
          }
        },{
          name:'食品饮品',
          value:3,
          itemStyle:{
            color:'#f37842'
          }
        },{
          name:'工艺美术',
          value:2,
          itemStyle:{
            color:'#fddc7a'
          }
        }
      ]
    }
  ]
}
//上月新增机构行业占比
export const newAddoption = {
  grid:{
    containLabel:true
  },
  title : {
    text: '上月新增机构行业占比',
    x:'center',
    textStyle:{
      color:'#fff',
      fontSize:32,
      fontWeight:'normal',
    }
  },
  series : [
    {
      name: '访问来源',
      type: 'pie',
      radius : '80%',
      center: ['50%', '50%'],
      label:{
        show:true,
        position:'outside',
        color:pieWordColor,
        fontSize:zhouFontSize,
        formatter:function (params) {
          return params.value+'%'+'\n'+params.name
        }
      },
      color:['#d87b7f','#27cacc','#b6a3de','#53b5eb','#feb97b'],
      data:[
        {
          value:33,
          name:'data1',
        },
        {
          value:10,
          name:'data2',
        },
        {
          value:34,
          name:'data3',
        },
        {
          value:35,
          name:'data4',
        },
        {
          value:48,
          name:'data5',
        }
      ],
      itemStyle: {
        emphasis: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(0, 0, 0, 0.5)'
        }
      }
    },
  ]
};
//上月注销机构行业占比
export const logoutOption={
  grid:{
    containLabel:true,
  },
  title : {
    text: '上月注销机构行业占比',
    x:'center',
    textStyle:{
      color:'#fff',
      fontSize:32,
      fontWeight:'normal'
    }
  },
  series: [
    {
      name:'上月注销机构行业占比',
      type:'pie',
      radius: ['45%', '80%'],
      avoidLabelOverlap: false,
      color:['#d87b7f','#27cacc','#b6a3de','#53b5eb','#feb97b'],
      label: {
        normal: {
          show: true,
          position: 'inside',
          fontSize:zhouFontSize,
          formatter:function (params) {
            return params.value+'%'+'\n'+params.name
          }
        },
      },
      // labelLine: {
      //   normal: {
      //     show: false
      //   }
      // },
      data:[
        {
          value:33,
          name:'直接访问',
        },
        {
          value:10,
          name:'邮件营销',
        },
        {
          value:34,
          name:'联盟广告',
        },
        {
          value:35,
          name:'视频广告',
        },
        {
          value:48,
          name:'搜索引擎',
        }
      ],
    },
  ]
};
//上月新增机构
export const addJgOption = {
  grid:{
    containLabel:true
  },
  title: {
    text: '上月新增机构',
    x:'center',
    textStyle: {
      color: '#fff',
      fontSize:zhouFontSize
    }
  },
  color:['#d87b7f','#27cacc','#b6a3de','#53b5eb','#feb97b'],
  series : [
    {
      name:'漏斗图',
      type:'funnel',
      min: 0,
      max: 100,
      gap:0,
      width:'85%',
      data:[
        {value:100, name:'展现',realData:90},
        {value:80, name:'点击',realData:60},
        {value:60, name:'访问',realData:50},
        {value:40, name:'咨询',realData:45},
        {value:20, name:'订单',realData:20},
      ],
      label: {
        formatter: function (params) {
          return params.data['realData'] + '家';
        },
        fontWeight:'bold',
        position: 'center',
        fontSize:zhouFontSize,
        shadowColor:'#000',
        shadowBlur:10,
        shadowOffsetX:5,
        shadowOffsetY:5
      },
      labelLine:{
        show:false
      }
    },{
      name:'漏斗图1',
      type:'funnel',
      min: 0,
      max: 100,
      gap:0,
      width:'85%',
      data:[
        {value:100, name:'展现'},
        {value:80, name:'点击'},
        {value:60, name:'访问'},
        {value:40, name:'咨询'},
        {value:20, name:'订单'},
      ],
      label: {
        color:'#fff',
        formatter: function (params) {
          return params.name;
        },
        fontWeight:'bold',
        position: 'left',
        fontSize:zhouFontSize
      },
      labelLine:{
        show:false
      }
    }

  ]
};
//上月注销机构
export const lououtJgOption = {
  grid:{
    containLabel:true,
    right:100
  },
  title: {
    text: '上月注销机构',
    x:'center',
    textStyle: {
      color: '#fff',
      fontSize:zhouFontSize
    },
  },
  color:['#d87b7f','#27cacc','#b6a3de','#53b5eb','#feb97b'],
  series : [
    {
      name:'漏斗图',
      type:'funnel',
      min: 0,
      max: 100,
      gap:0,
      width:'85%',
      sort: 'ascending',
      data:[
        {value:20, name:'食品制造业',realData:90},
        {value:40, name:'咨询',realData:90},
        {value:60, name:'访问',realData:90},
        {value:80, name:'点击',realData:90},
        {value:100, name:'展现',realData:90}
      ],
      label: {
        normal: {
          formatter: function (params) {
            return params.data['realData'] + '家';
          },
          fontWeight:'bold',
          position: 'center',
          fontSize:zhouFontSize
        }
      },
      labelLine:{
        show:false
      }
    },{
      name:'漏斗图',
      type:'funnel',
      min: 0,
      max: 100,
      gap:0,
      width:'85%',
      sort: 'ascending',
      data:[
        {value:20, name:'订单'},
        {value:40, name:'咨询'},
        {value:60, name:'访问'},
        {value:80, name:'点击'},
        {value:100, name:'展现'}
      ],
      label: {
        color:'#fff',
        fontWeight:'bold',
        formatter: function (params) {
          return params.name;
        },
        position: 'left',
        fontSize:zhouFontSize
      },
      labelLine:{
        show:false
      }
    }

  ]
};
//第二屏幕
//抽查情况
export const caseOption = {
  grid: {
    containLabel: true
  },
  "legend": {
    "data": [{
      "name": "企业家数",
      "icon": "circle",
      "textStyle": {
        "color": "#7d838b"
      }
    },
      {
        "name": "合格批次",
        "icon": "circle",
        "textStyle": {
          "color": "#7d838b"
        }
      },{
        "name": "不合格批次",
        "icon": "circle",
        "textStyle": {
          "color": "#a08827"
        }
      },
      {
        "name": "合格率",
        "icon": "circle",
        "textStyle": {
          "color": "#7d838b"
        }
      }
    ],
    "top": "10%",
    "textStyle": {
      "color": "#fff"
    }
  },
  "xAxis": [{
    axisLine: {
      show: false
    },
    splitLine: {
      show: false
    },
    axisTick: {
      show: false
    },
    "type": "category",
    "data": [
      "A区",
      "B区",
      "C区",
      "D区",
      "E区",
      "F区"
    ],
    "axisLabel": {
      "show": true,
      "textStyle": {
        "color": "#7d838b"
      },
    }
  }],
  "yAxis": [{
    "type": "value",
    "name": "单位：个",
    "nameTextStyle": {
      "color": "#7d838b"
    },
    min: 0,
    max: 300,
    splitNumber: 6,
    "axisLabel": {
      "show": true,
      "textStyle": {
        "color": "#7d838b"
      }
    },
    axisLine: {
      show: false
    },
    splitLine: {
      show: false
    },
    axisTick: {
      show: false
    }
  },
    {
      "type": "category",
      data: [0, 10, 20, 40, 60, 80, 100],
      "name": "单位%",
      "show": true,
      "axisLabel": {
        "show": true,
        "textStyle": {
          "color": "#7d838b"
        }
      },
      axisLine: {
        show: false
      },
      splitLine: {
        show: false
      },
      axisTick: {
        show: false
      }
    }
  ],
  "series": [{
    "name": "企业家数",
    "type": "bar",
    "data": [90, 200, 100, 70, 89, 103],
    "barWidth": "20",
    "itemStyle": {
      "color": "#2fc8c1"
    }
  },
    {
      "name": "合格批次",
      "type": "bar",
      "stack":'pici',
      "data": [
        40,
        210,
        36,
        60,
        80,
        60
      ],
      "barWidth": 20,
      "itemStyle": {
        color: "#ffce0a"
      },
      "barGap": "0"
    },{
      "name": "不合格批次",
      "type": "bar",
      "stack":'pici',
      "data": [
        40,
        20,
        36,
        60,
        80,
        60
      ],
      "barWidth": 20,
      "itemStyle": {
        color: "#a08827"
      },
      "barGap": "0"
    },
    {
      "name": "合格率",
      "type": "line",
      "yAxisIndex": 0,
      "data": [
        40,
        50,
        90,
        155,
        101,
        18
      ],
      "itemStyle": {
        "normal": {
          "color": "#ffaa00"
        }
      },
      "smooth": true
    }
  ]
};
//雷达图
//行业占比
export const pieOption={
  backgroundColor: '#FFFFFF',
  series: [{
    type: 'pie',
    hoverAnimation: false,
    legendHoverLink: false,
    radius: ['28%', '35%'],
    color: ['#915872', '#3077b7', '#9a8169', '#333366', '#339999', '#663366'],
    labelLine: {
      normal: {
        show: false
      },

    },
    tooltip: {
      show: false,


    },
    data: [{
      value: 20392,
      name: ''
    },
      {
        value: 13922,
        name: ''
      },
      {
        value: 40392,
        name: ''
      },
      {
        value: 40392,
        name: ''
      },
      {
        value: 40392,
        name: ''
      },
      {
        value: 40392,
        name: ''
      }
    ]
  },
    {
      name: '',
      type: 'pie',
      radius: ['35%', '45%'],
      color: ['#d74e67', '#0092ff', '#eba954', '#336699', '#00cc99', '#663399'],
      data: [{
        value: 20392,
        name: '食品'
      },
        {
          value: 13922,
          name: '药品'
        },
        {
          value: 40392,
          name: '保健品'
        },
        {
          value: 40392,
          name: '化妆品'
        },
        {
          value: 40392,
          name: '医疗器械'
        },
        {
          value: 40392,
          name: '其他'
        }
      ]
    }
  ]
};



//第三屏
//组织结构
export const construcOption={
  title: {
    text: '组织结构图'
  },
  tooltip: {
    show: false,
    trigger: 'item',
    formatter: "{b}: {c}"
  },
  toolbox: {
    show: true,
    feature: {
      mark: {
        show: true
      },
      dataView: {
        show: true,
        readOnly: false
      },
      restore: {
        show: true
      },
      saveAsImage: {
        show: true
      }
    }
  },
  calculable: false,
  series: [{
    name: '树图',
    type: 'tree',
    orient: 'vertical', // vertical horizontal
    rootLocation: {
      x: '50%',
      y: '15%'
    }, // 根节点位置  {x: 'center',y: 10}
    nodePadding: 20,
    layerPadding: 40,
    symbol: 'rectangle',
    borderColor: 'black',
    itemStyle: {
      normal: {
        color: '#fff', //节点背景色
        label: {
          show: true,
          position: 'inside',
          textStyle: {
            color: 'black',
            fontSize: 15,
            //fontWeight:  'bolder'
          }
        },
        lineStyle: {
          color: '#000',
          width: 1,
          type: 'broken' // 'curve'|'broken'|'solid'|'dotted'|'dashed'
        }
      },
      emphasis: {
        label: {
          show: false
        }
      }
    },
    data: [{
      name: '董事会',
      value: 6,
      symbolSize: [70, 30],
      symbol: 'rectangle',
      itemStyle: {
        normal: {
          borderWidth: 2,
          borderColor: 'black'
        }
      },
      children: [{
        name: '总经理',
        value: 6,
        symbolSize: [70, 30],
        symbol: 'rectangle',
        itemStyle: {
          normal: {
            borderWidth: 2,
            borderColor: 'black'
          }
        },
        children: [{
          name: '营销中心',
          value: 4,
          symbolSize: [70, 30],
          symbol: 'rectangle',
          itemStyle: {
            normal: {
              label: {
                show: true,
                position: 'inside'
              },
              borderWidth: 2,
              borderColor: 'black'
            }
          },
          children: [{
            name: '市场部',
            value: 4,
            symbolSize: [60, 30],
            symbol: 'rectangle',
            itemStyle: {
              normal: {
                label: {
                  show: true,
                  position: 'inside'
                },
                borderWidth: 2,
                borderColor: 'black'
              }
            },
          },
            {
              name: '销售部',
              value: 4,
              symbolSize: [60, 30],
              symbol: 'rectangle',
              itemStyle: {
                normal: {
                  label: {
                    show: true,
                    position: 'inside'
                  },
                  borderWidth: 2,
                  borderColor: 'black'
                }
              },
            },
            {
              name: '客服部',
              value: 4,
              symbolSize: [60, 30],
              symbol: 'rectangle',
              itemStyle: {
                normal: {
                  label: {
                    show: true,
                    position: 'inside'
                  },
                  borderWidth: 2,
                  borderColor: 'black'
                }
              },
            }
          ]
        },
          {
            name: '项目中心',
            value: 4,
            symbolSize: [70, 30],
            symbol: 'rectangle',
            itemStyle: {
              normal: {
                label: {
                  show: true,
                  position: 'inside'
                },
                borderWidth: 2,
                borderColor: 'black'
              }
            },
            children: [{
              name: '售前支持部',
              value: 4,
              symbolSize: [90, 30],
              symbol: 'rectangle',
              itemStyle: {
                normal: {
                  label: {
                    show: true,
                    position: 'inside'
                  },
                  borderWidth: 2,
                  borderColor: 'black'
                }
              },
            },
              {
                name: '项目一部',
                value: 4,
                symbolSize: [70, 30],
                symbol: 'rectangle',
                itemStyle: {
                  normal: {
                    label: {
                      show: true,
                      position: 'inside'
                    },
                    borderWidth: 2,
                    borderColor: 'black'
                  }
                },
              },
              {
                name: '项目二部',
                value: 4,
                symbolSize: [70, 30],
                symbol: 'rectangle',
                itemStyle: {
                  normal: {
                    label: {
                      show: true,
                      position: 'inside'
                    },
                    borderWidth: 2,
                    borderColor: 'black'
                  }
                },
              },
              {
                name: '项目三部',
                value: 4,
                symbolSize: [70, 30],
                symbol: 'rectangle',
                itemStyle: {
                  normal: {
                    label: {
                      show: true,
                      position: 'inside'
                    },
                    borderWidth: 2,
                    borderColor: 'black'
                  }
                },
              }
            ]
          },
          {
            name: '技术中心',
            value: 4,
            symbolSize: [70, 30],
            symbol: 'rectangle',
            itemStyle: {
              normal: {
                label: {
                  show: true,
                  position: 'inside'
                },
                borderWidth: 2,
                borderColor: 'black'
              }
            },
            children: [{
              name: '开发部',
              value: 4,
              symbolSize: [70, 30],
              symbol: 'rectangle',
              itemStyle: {
                normal: {
                  label: {
                    show: true,
                    position: 'inside'
                  },
                  borderWidth: 2,
                  borderColor: 'black'
                }
              },
            },
              {
                name: '设计部',
                value: 4,
                symbolSize: [70, 30],
                symbol: 'rectangle',
                itemStyle: {
                  normal: {
                    label: {
                      show: true,
                      position: 'inside'
                    },
                    borderWidth: 2,
                    borderColor: 'black'
                  }
                },
              },
              {
                name: '系统部',
                value: 4,
                symbolSize: [70, 30],
                symbol: 'rectangle',
                itemStyle: {
                  normal: {
                    label: {
                      show: true,
                      position: 'inside'
                    },
                    borderWidth: 2,
                    borderColor: 'black'
                  }
                },
              }
            ]
          },
          {
            name: '行政部',
            value: 4,
            symbolSize: [70, 30],
            symbol: 'rectangle',
            itemStyle: {
              normal: {
                label: {
                  show: true,
                  position: 'inside'
                },
                borderWidth: 2,
                borderColor: 'black'
              }
            }
          },
          {
            name: '财务部',
            value: 4,
            symbolSize: [70, 30],
            symbol: 'rectangle',
            itemStyle: {
              normal: {
                label: {
                  show: true,
                  position: 'inside'
                },
                borderWidth: 2,
                borderColor: 'black'
              }
            }
          },
          {
            name: '其他分支',
            value: 4,
            symbolSize: [70, 30],
            symbol: 'rectangle',
            itemStyle: {
              normal: {
                label: {
                  show: true,
                  position: 'inside'
                },
                borderWidth: 2,
                borderColor: 'black'
              }
            },
            children: [{
              name: '汕头分公司',
              value: 4,
              symbolSize: [90, 30],
              symbol: 'rectangle',
              itemStyle: {
                normal: {
                  label: {
                    show: true,
                    position: 'inside'
                  },
                  borderWidth: 2,
                  borderColor: 'black'
                }
              },
            }]
          },
        ]
      }]
    }]
  }]
};
